package com.dycx.user.dto;

import com.dycx.common.dto.PageDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
public class CreditRecordDTO extends PageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @NotNull(message = "uid不能为空")
    private Integer uid;

    /**
     * 积分记录类型
     */
    private Integer type;

    /**
     * 积分数，负数为减，正数为加
     */
    @NotNull(message = "积分值不能为空")
    private Integer num;

    /**
     * 备注
     */
    @NotNull(message = "积分记录说明不能为空")
    private String remark;

    private String username;
    private String mobile;
}
